﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" CodeBehind="Edit.aspx.cs" Inherits="IssueTrackerMvcWeb.Views.Home.Edit" %>
<%@ Import Namespace="IssueTrackerMvcWeb.Controllers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <%using (Html.Form<HomeController>(p => p.Update(ViewData.Model.Issue.Id)))
      { %>
        <table>
            <tr>
                <td>Project</td>
                <td><%=Html.DropDownList("Issue.ProjectId", new SelectList(ViewData.Model.ProjectList, "Id", "Name", ViewData.Model.Issue.ProjectId))%></td>
            </tr>
            <tr>
                <td>Title</td>
                <td><%=Html.TextBox("Issue.Title", ViewData.Model.Issue.Title)%></td>
            </tr>
            <tr>
                <td>Description</td>
                <td><%=Html.TextBox("Issue.Description", ViewData.Model.Issue.Description)%></td>
            </tr>
            <tr>
                <td>Long Description</td>
                <td><%=Html.TextBox("Issue.LongDescription", ViewData.Model.Issue.LongDescription)%></td>
            </tr>
            <tr>
                <td></td>
                <td></td>
            </tr>
            <tr>
                <td>Workflow Options</td>
                <td><%=Html.DropDownList("Action", new SelectList(ViewData.Model.Actions, "value", "key", "")) %></td>
            </tr>
        </table>
        <%= Html.SubmitButton("Submit", "Submit") %>
    <%} %>
</asp:Content>
